<template>
    <div>
        <div class="card-item" v-for="(item, index) of list" :key="index">
            <flexbox>
                <span style="font-size: 18px; color: #172b4d" class="font-w-b"> {{ item.pmpProductDetailDTO.systemName }} </span>
                <a-tag style="margin-left: 12px; background: rgba(95, 191, 168, 0.14); color: #3ec0a2; border: 1px solid rgba(95, 191, 168, 0.14)">{{ item.pmpProductDetailDTO.catalogType === '1' ? '产品' : '子产品' }}</a-tag>
            </flexbox>

            <flexbox>
                <flexbox style="width: 100%" direction="column" v-if="item.isNoData === '1'">
                    <a-empty description="本周期内没有可汇报需求" />
                </flexbox>
                <div style="width: 100%" v-else>
                    <JiraXuqiuGuanli :info="item.requireInfos" :detail="item" v-if="item.dataSource === '外部' && item.pmpProductDetailDTO.projectKey" />
                    <XuqiuGuanli :info="item.requireInfos" :detail="item" v-else />
                </div>
            </flexbox>
        </div>
    </div>
</template>

<script lang="ts">
import { RightOutlined, MinusOutlined, ExclamationCircleFilled } from '@ant-design/icons-vue';
import XuqiuGuanli from './components/XuqiuGuanli.vue';
import JiraXuqiuGuanli from './components/JiraXuqiuGuanli.vue';
import { defineComponent, ref, unref, reactive, toRefs } from 'vue';
export default defineComponent({
    components: {
        ExclamationCircleFilled,
        XuqiuGuanli,
        JiraXuqiuGuanli
    },
    props: {
        list: {
            type: Array,
            default: () => []
        },
        queryArr: {
            type: Array,
            default: () => []
        },
        searchQuery: {
            type: Object,
            default: () => ({})
        },
        reportName: {
            type: String,
            default: ''
        },
        reportType: {
            type: String,
            default: ''
        }
    }
});
</script>

<style scoped lang="less">
.card-item {
    padding: 16px 12px;
    height: 186px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #edeff3;
    box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.05), 0px 4px 5px 0px rgba(0, 0, 0, 0.08), 0px 2px 4px -1px rgba(0, 0, 0, 0.12);
    margin-bottom: 12px !important;
}
</style>